package com.nurt.dao;

import java.sql.SQLException;
import java.util.List;

import com.nurt.entity.OrderEntity;

public interface OrderDao {
    List<OrderEntity> selectOrders(int userId) throws SQLException;
    OrderEntity selectOrder(int userId) throws SQLException;
    List<OrderEntity> selectOrdersByStatus(int userId, int status) throws SQLException;
    int updateOrder(OrderEntity order) throws SQLException;
    int updateOrderStatus(int orderId, int status) throws SQLException;
    int insertOrder(OrderEntity order) throws SQLException;
}